package org.mdrtwell.jdk15;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;

public class ListGenericFoo<T extends List> {
	private T[]	fooArray;

	public T[] getFooArray() {
		return fooArray;
	}

	public void setFooArray(T[] fooArray) {
		this.fooArray = fooArray;
	}

	public static void main(String[] args) {
		ListGenericFoo<LinkedList> foo1 = new ListGenericFoo<LinkedList>();
		ListGenericFoo<ArrayList> foo2 = new ListGenericFoo<ArrayList>();
		LinkedList[] linkArray = new LinkedList[10];
		foo1.setFooArray(linkArray);
		ArrayList[] arrayArray = new ArrayList[10];
		foo2.setFooArray(arrayArray);
		/*
		 * ������� HashMap[] mapArray = new HashMap[10];
		 * foo2.setFooArray(mapArray);
		 */
	}
}
